import ConfigSetting from '@/pages/Org/components/ConfigSetting';
import ProCard from '@ant-design/pro-card';
import { ProCardTabsProps } from '@ant-design/pro-card/lib';
import React, { useState } from 'react';

const PageView: React.FC = () => {
  const cardLayout = (layout: React.ReactNode) => {
    return <ProCard layout={'center'}>{layout}</ProCard>;
  };
  const [tabPosition, setTabPosition] =
    useState<ProCardTabsProps['tabPosition']>('left');
  return (
    <>
      <ProCard
        title={'系统管理'}
        tabs={{
          tabPosition,
          items: [
            {
              label: '基本信息',
              key: 'base',
              closable: false,
            },
            {
              label: '机构设置',
              key: 'info',
              closable: false,

              children: <ConfigSetting />,
            },
          ],
        }}
      ></ProCard>
    </>
  );
};
export default PageView;
